package com.thread.www.demo;

/**
 * Created by wangyang on 2017/10/23.
 */
public class JoinMain {
    public volatile static int i=0;

    public static class AaddThread extends Thread{
        @Override
        public void run(){
            for(i=0;i<10000;i++);
        }
    }

    public static void main(String[] args) {
        AaddThread at = new AaddThread();
        at.start();
//        try {
//            at.join();
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        System.out.println(i);
    }
}
